<!--
*Author：富行天下团队
 
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/Supplier/SupplierType.js此处编写
 -->
<template>
  <div>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormFileds="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormFileds="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from "@/extension/Supplier/SupplierType.js";
import ViewGrid from "@/components/basic/ViewGrid.vue";
var vueParam = {
  components: {
    ViewGrid
  },
  data () {
    return {
      table: {
        key: 'id',
        footer: "Foots",
        cnName: '供应商系统',
        name: 'SupplierType',
        url: "/SupplierType/",
        sortName: "id"
      },
      extend: extend,
      editFormFields: { "supplierType": "", "supplierBrand": "", "supplierBrandName": "", "systemCode": "", "systemName": "", "systemVersion": "", "creator": "", "createID": "", "createDate": "", "modifier": "", "modifyID": "", "modifyDate": "" },
      editFormOptions: [[{ "dataKey": "SupplierType", "data": [], "title": "类别", "field": "supplierType", "type": "select","required":true }],
      [
        { "title": "品牌名称", "field": "supplierBrandName", "type": "text","required":true },
        { "title": "品牌编码", "field": "supplierBrand", "type": "text","required":true },
      ],
      ],
      searchFormFields: { "supplierType": "", "supplierBrand": "", "supplierBrandName": "", "systemCode": "", "systemName": "", "systemVersion": "" },
      searchFormOptions: [[{ "title": "品牌名称", "field": "supplierBrandName", "type": "like" },{ "dataKey": "SupplierType", "data": [], "title": "类别", "field": "supplierType", "type": "select" }, { "title": "品牌编码", "field": "supplierBrand", "type": "like" }], [{ "title": "系统编码", "field": "systemCode", "type": "like" }, { "title": "系统名称", "field": "systemName", "type": "like" }, { "title": "系统版本号", "field": "systemVersion", "type": "like" }]],
      columns: [{ field: 'supplierType', title: '类别名称', type: 'string', bind: { key: 'SupplierType', data: [] }, width: 220, align: 'left', sortable: true },
      { field: 'supplierTypeName', title: '类别名称', type: 'string', width: 220, align: 'left', hidden: true },
      { field: 'supplierBrand', title: '品牌编码', type: 'string', width: 220, align: 'left' },
      { field: 'supplierBrandName', title: '品牌名称', type: 'string', width: 220, align: 'left', },
      // { field: 'systemCode', title: '系统编码', type: 'string', width: 220, align: 'left' },
      // { field: 'systemName', title: '系统名称', type: 'string', width: 220, align: 'left' },
      // { field: 'systemVersion', title: '系统版本号', type: 'string', width: 220, align: 'left' },
      { field: 'creator', title: '创建人', type: 'string', width: 180, align: 'left' },
      { field: 'createDate', title: '创建时间', type: 'datetime', width: 90, align: 'left', sortable: true },
      { field: 'modifier', title: '修改人', type: 'string', width: 180, align: 'left' },
      { field: 'modifyDate', title: '修改时间', type: 'datetime', width: 90, align: 'left', sortable: true },
      { field: 'createID', title: '创建人ID', type: 'int', width: 90, hidden: true, align: 'left' },
      { field: 'id', title: '主键', type: 'int', width: 90, hidden: true, readonly: true, require: true, align: 'left' },
      { field: 'modifyID', title: '修改人ID', type: 'int', width: 90, hidden: true, align: 'left' }],
      detail: {
        cnName: "供应商系统",
        isDetail: false,
        isDetails: false,
        columns: [
          {
            field: "versionld",
            title: "主键",
            type: "int",
            width: 90,
            hidden: true,
            readonly: true,
            require: true,
            align: "left",
          },
          {
            field: "systemName",
            title: "系统名称",
            type: "string",
            bind: { key: "systemParams", data: [] },
            width: 60,
            align: "left",
            edit: { type: "text" },
          },
          {
            field: "systemCode",
            title: "系统编码",
            type: "string",
            width: 50,
            align: "left",
            edit: { type: "text" },
          },
          {
            field: "systemParams",
            title: "多选参数",
            type: "string",
            bind: { key: "systemParams", data: [] },
            width: 300,
            height: 600,
            align: "left",
            edit: { type: "selectList", key: "systemParams", data: [] },
          },
          {
            field: "systemVersion",
            title: "系统版本号",
            type: "string",
            width: 45,
            edit: { type: "text" },
            require: true,
            align: "left",
          },
          {
            field: "createDate",
            title: "创建时间",
            type: "string",
            width: 120,
            hidden: true,
            align: "left",
          },
          {
            field: "createID",
            title: "创建人ID",
            type: "string",
            hidden: true,
            width: 120,
            align: "left",

          },
          {
            field: "creatOR",
            title: "创建人",
            type: "string",
            width: 90,
            hidden: true,
            align: "left",
          },
          {
            field: "modifier",
            title: "修改人",
            type: "string",
            width: 200,
            hidden: true,
            require: true,
            align: "left",
          },
          {
            field: "modifyDate",
            title: "修改时间",
            type: "string",
            width: 90,
            hidden: true,
            require: true,
            align: "left",
          },
          {
            field: "modifyID",
            title: "修改人ID",
            type: "string",
            width: 90,
            hidden: true,
            require: true,
            align: "left",
          },


        ],
        sortName: "versionId",
        key: "versionId"
      }
    };
  }
};
export default vueParam;
</script>
